//package com.budgetme.activities;
//
//import com.budgetme.R;
//import com.budgetme.activities.fragments.BudgetDetailsFragment.OnEditBudgetSelectedListener;
//import com.budgetme.activities.fragments.BudgetListFragment.OnAddBudgetSelectedListener;
//import com.budgetme.activities.fragments.NewBudgetFragment;
//import com.budgetme.activities.fragments.BudgetDetailsFragment;
//import com.budgetme.activities.fragments.BudgetListFragment;
//import com.budgetme.activities.fragments.BudgetListFragment.OnBudgetSelectedListener;
//import com.budgetme.activities.fragments.NewBudgetFragment.OnAddBudgetSubmitListener;
//import com.budgetme.database.Database;
//
//import android.app.Activity;
//import android.app.FragmentManager;
//import android.app.FragmentTransaction;
//import android.os.Bundle;
//import android.util.Log;
//
//
//public class BudgetFragmentController extends Activity implements OnAddBudgetSelectedListener, OnBudgetSelectedListener, OnAddBudgetSubmitListener, OnEditBudgetSelectedListener {
//	private static final String TAG = BudgetFragmentController.class.getName();
//
//	FragmentManager mFragmentManager;
//	
//	@Override
//    public void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//		Log.d(TAG, "onCreate");
//
//		setContentView(R.layout.budget_fragment_controller);
//		
//		mFragmentManager = getFragmentManager();
//		
//		BudgetListFragment fragment = new BudgetListFragment();
//		
//		Bundle args = new Bundle();
//		args.putInt(BudgetListFragment.ARG_FILTER, Database.tbl_budgets.FILTER_ALL);
//		fragment.setArguments(args);
//		
//		FragmentTransaction transaction = mFragmentManager.beginTransaction();
//		transaction.add(R.id.fragment_container, fragment).commit();
//		
//	}
//	
//	@Override
//	public void onResume() {
//		super.onResume();
//		Log.d(TAG, "onResume");
//	}
//	
//	@Override
//	public void onPause() {
//		super.onPause();
//		Log.d(TAG, "onPause");
//	}
//	
//	@Override
//	public void onDestroy() {
//		super.onDestroy();
//		Log.d(TAG, "onDestroy");
//	}
//
//	@Override
//	public void onBudgetSelected(int id) {
//		
//		BudgetDetailsFragment fragment = new BudgetDetailsFragment();
//		Bundle args = new Bundle();
//		args.putInt(BudgetDetailsFragment.ARG_ID, id);
//		fragment.setArguments(args);
//		
////		fragment.setHasOptionsMenu(true);
//		
//		FragmentTransaction transaction = mFragmentManager.beginTransaction();
//		transaction.replace(R.id.fragment_container, fragment);
//		transaction.addToBackStack(null).commit();
//		
//	}
//
//	@Override
//	public void onAddBudgetSelected() {
//
//		NewBudgetFragment fragment = new NewBudgetFragment();
//		
////		fragment.setHasOptionsMenu(true);
//		
//		FragmentTransaction transaction = mFragmentManager.beginTransaction();
//		transaction.replace(R.id.fragment_container, fragment);
//		transaction.addToBackStack(null).commit();
//		
//	}
//
//	@Override
//	public void onAddBudgetSubmit() {
//		
//	}
//
//	@Override
//	public void onEditBudgetSelected() {
//		
//	}
//	
//}